home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- * Triv_dbg.c - Provide a routine to print Trivariate objects to stderr. *
- *******************************************************************************
- * Written by Gershon Elber, Dec. 94. *
- ******************************************************************************/
-
- #include "triv_loc.h"
-
- /*****************************************************************************
- * DESCRIPTION: M
- * Prints trivariates stderr. Should be linked to programs for debugging M
- * purposes, so trivariates may be inspected from a debugger. M
- * *
- * PARAMETERS: M
- * Obj: A trivariate - to be printed to stderr. M
- * *
- * RETURN VALUE: M
- * void M
- * *
- * KEYWORDS: M
- * TrivDbg, debugging M
- *****************************************************************************/
- void TrivDbg(void *Obj)
- {
- char *ErrorMsg;
- TrivTVStruct
- *TV = (TrivTVStruct *) Obj;
- TrivGeomType
- GType = TV -> GType;
-
- switch (GType) {
- case TRIV_TVBEZIER_TYPE:
- case TRIV_TVBSPLINE_TYPE:
- TrivTVWriteToFile3(TV, stderr, 0, "TrivDbg", &ErrorMsg);
- break;
- case TRIV_UNDEF_TYPE:
- break;
- }
-
- if (ErrorMsg)
- fprintf(stderr, "TrivDbg Error: %s\n", ErrorMsg);
- }
-